<?php 
/*
Template Name: 高管介绍模版
*/
get_header();
$this_is_page=true;
?>
		 <div id="container1">
	 	   <div class="AboutSubmenu">
		   	<ul>
				
				<li class="Home"><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/homebutton.png" /></a></li>
				
                             <?php   
                            if($post->post_parent) {
                              $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&depth=1&echo=0");
                              $titlenamer = get_the_title($post->post_parent);
                              }
                              else {
                              $children = wp_list_pages("title_li=&child_of=".$post->ID."&depth=1&echo=0");
                              $titlenamer = get_the_title($post->ID);
                              }
                              ?>
                                <li class="TitleButton"><?php echo $titlenamer; ?></li>
                              <?php
                              if ($children) { ?>
                              <?php echo $children; ?>
                             <?php } ?>

				<li class="Image"><img src="<?php bloginfo('template_url'); ?>/images/culture.jpg" /></li>
			</ul>
			
			
		   </div>
		   
		   <div class="contentSub">
		   
			     <div class="titlePic">
				 	<img src="<?php bloginfo('template_url'); ?>/images/executivetitlebg.png" />
				 </div>                   		  
		     <div class="contentBody">
					<?php
						$the_query = new WP_Query('category_name=executive&posts_per_page=30&orderby=ID&order=ASC');
						$column_flag = 0;
						
                        while ($the_query->have_posts()) : $the_query->the_post(); 
								
						?>
					<div class="executive">
						<div class="executivePic">
						<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
							  the_post_thumbnail(array(250,220),array('title' => ''));}else{}?>
						<span><?php the_title();?></span>
						</div>
						<div class="executiveContent"><?php the_content();?></div>
					</div>			
					<?php endwhile; ?>	
	
					</div>	
				</div>		
              
			  <div class="pageBottomPic"></div>
		   </div>
		 </div>

<?php get_footer(); ?>